package com.quiz.bis.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.quiz.common.core.domain.BaseEntity;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 考试组视图对象
 * @author ahuan
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ExamGroupVo extends BaseModel {
    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String coverImage;
    private Long mainOwnerId;
    private String mainOwnerName;
    private Long originalOwnerId;
    private String description;
    private Integer maxSubgroups;
    private Integer status;
    private Integer role; // 当前用户在组中的角色
    private Long memberCount;
    private Integer approveStatus; // 审核状态

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime; // 加入时间

    // 邀请相关字段（仅pendingInvites接口返回）
    private Long inviteId;
    private String inviteCode;
    private Integer inviteType;
    private Long inviterId;
    private String inviterName;

}